<div class="add"><a class="zAdd" href="/admin/news_class_add">增加一级分类</a></div>
<div class="sub">
	<div class="sub_id_3">序号</div>
	<div class="sub_name_3">分类名</div>
	<div class="sub_edit_3">操作</div>
</div>
<div class="content">
<?php foreach ($big_class as $key => $value):?>
<div class="content_list">
	<div class="sub_id_3"><?=$key+1?></div>
	<div class="sub_name_3"><?=$value['NewsClass']['class_name']?></div>
	<div class="sub_edit_3"><a class="zAdd" href="/admin/news_class_add?cid=<?=$value['NewsClass']['id']?>">增加二级分类</a>&nbsp;&nbsp;<a class="zChange" href="/admin/news_class_update?id=<?=$value['NewsClass']['id']?>">修改</a>&nbsp;&nbsp;<form method='post' action='/admin/news_class_manage?id=<?=$value['NewsClass']['id']?>&action=del' class="dataForm"><button class="zDelect" type="submit">删除</button></form></div>
</div>
<?php if(!empty($small_class)):?>
	<?php foreach ($small_class as $k => $v):?>
		<?php if($value['NewsClass']['id']==$v['NewsClass']['cid']):?>
			<div class="two_LevelClass content_list">
				<div class="sub_id_3">&nbsp;</div>
				<div class="sub_name_3"><?=$v['NewsClass']['class_name']?></div>
				<div class="sub_edit_3"><a class="zChange" href="/admin/news_class_update?id=<?=$v['NewsClass']['id']?>&cid=<?=$value['NewsClass']['id']?>">修改</a>&nbsp;&nbsp;<form method='post' action='/admin/news_class_manage?id=<?=$v['NewsClass']['id']?>&action=del' class="dataForm"><button type="submit" class="zDelect">删除</button></form></div>
			</div>
		<?php endif;?>
	<?php endforeach;?>
<?php endif;?>
<?php endforeach;?>
</div>

<?php $pagination_params = $this->Paginator->params(); 
if($pagination_params['pageCount'] > 1):?>
	<?php echo $this->element('pagination');?>
<?php endif; ?>